package com.hzd.entity;

import ablaze.framework.constant.Constant;

import javax.persistence.Entity;
import javax.persistence.Id;
import java.math.BigDecimal;

/**
 * @author christ
 * @date 2015/10/20
 */
@Entity
public class ActivityUserBond extends BaseEntity{

    @Id
    private String id;

    private String openid;

    private String bondCode;

    //抵用券金额
    private BigDecimal amount;

    /**
     * 是否已领取
     */
    private String isClaimed = Constant.BOOLEAN.N;

    /**
     * 是否已使用
     * （预留,暂未使用）
     */
    private String isUsed = Constant.BOOLEAN.N;

    public String getId() {
        return id;
    }

    public ActivityUserBond setId(String id) {
        this.id = id;
        return this;
    }

    public String getOpenid() {
        return openid;
    }

    public ActivityUserBond setOpenid(String openid) {
        this.openid = openid;
        return this;
    }

    public String getBondCode() {
        return bondCode;
    }

    public ActivityUserBond setBondCode(String bondCode) {
        this.bondCode = bondCode;
        return this;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public ActivityUserBond setAmount(BigDecimal amount) {
        this.amount = amount;
        return this;
    }

    public String getIsUsed() {
        return isUsed;
    }

    public ActivityUserBond setIsUsed(String isUsed) {
        this.isUsed = isUsed;
        return this;
    }

    public String getIsClaimed() {
        return isClaimed;
    }

    public ActivityUserBond setIsClaimed(String isClaimed) {
        this.isClaimed = isClaimed;
        return this;
    }
}
